package com.lill.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.product.dao.IProductQualifierDao;
import com.lill.product.model.ProductQualifierModel;
import com.lill.product.service.IProductQualifierService;

/**
 * 合格证Service实现类
 *
 * @author lill
 * @date 2021-11-14 00:40:06
 */
@Service("com.lill.product.service.impl.ProductQualifierServiceImpl")
public class ProductQualifierServiceImpl implements IProductQualifierService {
	
    @Autowired
    private IProductQualifierDao productQualifierDao;

    public ProductQualifierModel queryObject(String id) {
        return productQualifierDao.queryObject(id);
    }

    public List<ProductQualifierModel> queryList(Map<String, Object> map) {
        return productQualifierDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return productQualifierDao.queryTotal(map);
    }

    public int save(ProductQualifierModel productQualifier) {
        productQualifier.setId(IdUtil.createIdbyUUID());
        return productQualifierDao.save(productQualifier);
    }

    public int update(ProductQualifierModel productQualifier) {
        return productQualifierDao.update(productQualifier);
    }

	public int deleteLogicByMap(Map<String, Object> map) {
		return productQualifierDao.deleteLogicByMap(map);
	}
}
